﻿using FlexFlow.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlexFlow.Base.Interface
{
    /// <summary>
    /// 表示工作流信息数据提供者接口
    /// </summary>
    public interface IWorkFlowInformationProvider : IPhysicalEntityProvider<WorkFlowInformation>
    {
        /// <summary>
        /// 设置指定的信息项的值
        /// </summary>
        /// <param name="identity">
        /// 信息项的Id
        /// </param>
        /// <param name="value">
        /// 信息项的值
        /// </param>
        /// <remarks>
        /// 该操作要级联更新LastModifyTime
        /// </remarks>
        /// <returns>
        /// 一个值，表示更新是否成功
        /// </returns>
        bool SetValue(Guid identity, string value);
        /// <summary>
        /// 获取指定的信息项
        /// </summary>
        /// <param name="dictionary">
        /// 信息项的目录
        /// </param>
        /// <returns>
        /// 获取到的信息项
        /// </returns>
        WorkFlowInformation Get(string dictionary, string key);
    }
}
